<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: 烽
  Date: 2015/7/18
  Time: 23:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">

    <title>${title}|${article.title}</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.css">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"></script>

    <!--ckeditor -->
    <script src="<%=request.getContextPath()%>/resource/plugin/ckeditor/ckeditor.js"></script>
    <%--highlight插件开始--%>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/resource/plugin/highlight/styles/agate.css">
    <script src="<%=request.getContextPath()%>/resource/plugin/highlight/highlight.pack.js"></script>
    <script type="application/javascript">
        hljs.initHighlightingOnLoad();
    </script>
    <%--hightlight插件结束--%>
</head>
<body>
<div id="all" class="col-md-12">
    <jsp:include page="/WEB-INF/views/common/head.jsp"/>
    <jsp:include page="/WEB-INF/views/common/menu.jsp"/>
    <div id="blog" class="col-md-10 col-md-offset-1">
        <h1>${article.title}</h1><br>

        <div id="detail" style="float: left;">
            <p>
                <small>分类：${article.typeName}</small>
                &nbsp;&nbsp;
                <small>${article.formatTime}</small>
                &nbsp;&nbsp;
                <small><a href="<%=request.getContextPath()%>/blog/addBlog?id=${article.id}">编辑</a></small>
                <security:authorize access="hasRole('ROLE_ADMIN')">
                    &nbsp;&nbsp;
                    <small><a href="<%=request.getContextPath()%>/blog/deleteBlog?id=${article.id}">删除</a></small>
                </security:authorize>
            </p>
        </div>
        <div class="bshare-custom" style="float: right">
            <div class="bsPromo bsPromo2"></div>
            <a title="分享到" href="http://www.bShare.cn/" id="bshare-shareto" class="bshare-more">分享到</a>
            <a title="分享到新浪微博" class="bshare-sinaminiblog">新浪微博</a>
            <a title="分享到QQ好友" class="bshare-qqim" href="javascript:void(0);">QQ好友</a>
            <a title="分享到有道笔记" class="bshare-youdaonote" href="javascript:void(0);">有道笔记</a>
            <a title="分享到Evernote" class="bshare-evernote" href="javascript:void(0);">Evernote</a>
            <a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a>
            <span style="float: none;" class="BSHARE_COUNT bshare-share-count">40.4K</span>
        </div>

        <br><br><br>
        <hr>
        <div id="content">
            ${article.content}
        </div>
        <br><br><br>
        <hr>
        <br>


    </div>
    <div id="response" class="col-md-12">
        <br>
        <!-- 多说评论框 start -->
        <div class="ds-thread" data-thread-key="${article.id}" data-title="${article.title}"
             data-url="<%=request.getContextPath()%>/blog/blog?id=${article.id}"></div>
        <!-- 多说评论框 end -->
    </div>
    <jsp:include page="/WEB-INF/views/common/foot.jsp"/>

</div>
</body>
<!-- JiaThis Button START -->
<script type="text/javascript" charset="utf-8"
        src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script>
<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>
<!-- JiaThis Button END -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
    var duoshuoQuery = {short_name: "winder"};
    (function () {
        var ds = document.createElement('script');
        ds.type = 'text/javascript';
        ds.async = true;
        ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
        ds.charset = 'UTF-8';
        (document.getElementsByTagName('head')[0]
        || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
</script>
<!-- 多说公共JS代码 end -->
</html>


</div>
</body>
</html>
